package net.xiduth.game.player.dialogues;

import net.xiduth.game.WorldTile;
import net.xiduth.game.player.content.Magic;
import net.xiduth.game.player.controlers.RunespanControler;

public class RunespanPortalD extends Dialogue {

	@Override
	public void start() {
		sendOptionsDialogue("Where would you like to travel to?",
				"The Runecrafting Guild",
				"Low level entrance into the Runespan",
				"High level entrance into the Runespan");
		stage = 1;
	}

	@Override
	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1) {
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1697,
						5465, 2));
				end();
			} else {
				player.getBank().depositAllEquipment(false);
				player.getBank().depositAllInventory(false);
				RunespanControler
						.enterRunespan(player, componentId == OPTION_3);
				end();
			}
		}

	}

	@Override
	public void finish() {

	}

}
